package com.pony.service.impl;

import com.pony.dao.YyxtsMapper;
import com.pony.entity.Yyxts;
import com.pony.service.YyxtsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("yyxtsService")
public class YyxtsServiceImpl implements YyxtsService {
    @Autowired
    private YyxtsMapper yyxtsMapper;

    @Override
    public List<Yyxts> getAll() {
        return yyxtsMapper.getAll();
    }

    @Override
    public int delYyxts(int yyxtsid) {
        return yyxtsMapper.delYyxts(yyxtsid);
    }

    @Override
    public int addYyxts(Yyxts yyxts) {
        return yyxtsMapper.addYyxts(yyxts);
    }
}
